x = 0
y = 1
print(x, y, end=" ")
for i in range(50):
    x += y
    y += x
    print(x, y,  end=" ")

print("\n")
num1 = 0
num2 = 1
print(num1, num2, end=" ")
for i in range(100):
    sum1 = num1 + num2
    num1 = num2
    num2 = sum1
    print(sum1, end=" ")


# 完成的不错，python的话，可以写成sum1, sum2 = sum2, sum1+sum2
